#include <windows.h>
#include <stdio.h>

#include "modules.h"

extern "C" __declspec (dllexport) void opendefender( ){} // This is the function to be injected

/**********************************************************************
 * DllMain : Input method of the DLL
 **********************************************************************/
extern "C" __declspec (dllexport) BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD reason, LPVOID reserved)
{
	switch(reason)
	{           
		case DLL_PROCESS_ATTACH:
			#include "attachs/Process Attach.cpp"
			break;
			
        
 		case DLL_PROCESS_DETACH:
			#include "attachs/Process Detach.cpp"
    		break;
			
			
		case DLL_THREAD_ATTACH:
			#include "attachs/Thread Attach.cpp"
			break;
			
        
 		case DLL_THREAD_DETACH:
			#include "attachs/Thread Detach.cpp"
    		break;
		
	}
	return true;
}
